//
//  AccountLogoutCell.m
//  whopaidforit
//
//  Created by Hoang Vu on 1/29/13.
//  Copyright (c) 2013 Hoang Vu. All rights reserved.
//

#import "AccountLogoutCell.h"

@implementation AccountLogoutCell

@synthesize icon, btLogout;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    icon = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
    UIImage *image = [UIImage imageNamed:@"logOut.png"];
    icon.image = image;
    [self.contentView addSubview:icon];
    
    btLogout = [[UIButton alloc] initWithFrame:CGRectMake(15, 8, 100, 25)];
    //btLogout.backgroundColor = [UIColor clearColor];
    [btLogout setTitle:@"Log uit" forState:UIControlStateNormal];
    [btLogout setTitleColor:[UIColor colorWithRed:0.247 green:0.243 blue:0.243 alpha:1.0] forState:UIControlStateNormal];
    //[btLogout setTextColor:[UIColor colorWithRed:0.247 green:0.243 blue:0.243 alpha:1.0]];
    //btLogout.text = @"Voornaam";
    [self.contentView addSubview:btLogout];
    
    //for background
    GraphicDrawView *cellView = [[GraphicDrawView alloc] init];
    cellView.optionDraw = @"cell";
    self.backgroundView = cellView;
    [cellView release];
    
    //for hover background
    GraphicDrawView *cellHView = [[GraphicDrawView alloc] init];
    cellHView.optionDraw = @"cell";
    cellHView.optionHover = NO;
    self.selectedBackgroundView = cellHView;
    [cellHView release];
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
